﻿using Joy.Erp.BasicArchives.Core;
using Joy.Erp.BasicArchives.ItemMasters;
using System;

namespace Joy.Erp.BasicArchives.Asns
{
    /// <summary>
    /// ANS单行
    /// </summary>
    public class AsnLine : DocumentLineAggregateRoot, IChild
    {
        /// <summary>
        /// 采购申请单
        /// </summary>
        public Asn Document { get; set; }

        /// <summary>
        /// 料品
        /// </summary>
        public Guid ItemMasterId { get; set; }

        /// <summary>
        /// 料品
        /// </summary>
        public ItemMaster ItemMaster { get; set; }

        /// <summary>
        /// 料品编号
        /// </summary>
        public string ItemCode { get; set; }

        /// <summary>
        /// 料品名称
        /// </summary>
        public string ItemName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ItemSpec { get; set; }

        /// <summary>
        /// 发货数量
        /// </summary>
        public decimal Quantity { get; set; }

        /// <summary>
        /// 采购数量
        /// </summary>
        public decimal PurchasingQuantity { get; set; }

        /// <summary>
        /// 收货数量
        /// </summary>
        public decimal ReceivedQuantity { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public Guid UnitId { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public AuxiliaryUnit Unit { get; set; }
    }
}
